﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Siderys.Blog.Search.Engine.Resultado
{
    public class ObjetoResultado
    {
        public const string WorkIdColumn = "WorkId";
        public const string RankColumn = "Rank";
        public const string TitleColumn = "Title";
        public const string AuthorColumn = "Author";
        public const string SizeColumn = "Size";
        public const string PathColumn = "Path";
        public const string DescriptionColumn = "Description";
        public const string WriteColumn = "Write";

        public ObjetoResultado(long pWorkId, long pRank, string pTitle, string pAuthor, int pSize, string pPath, string pDescription, DateTime pWrite)
        {
            mWorkId = pWorkId;
            mRank = pRank;
            mTitle = pTitle;
            mAuthor = pAuthor;
            mSize = pSize;
            mPath = pPath;
            mDescription = pDescription;
            mWrite = pWrite;
        }
        private long mWorkId = 0;

        public long WorkId
        {
            get { return mWorkId; }
        }
        private long mRank = 0;

        public long Rank
        {
            get { return mRank; }
        }
        private string mTitle = string.Empty;

        public string Title
        {
            get { return mTitle; }
        }
        private string mAuthor = string.Empty;

        public string Author
        {
            get { return mAuthor; }
        }
        private int mSize = 0;

        public int Size
        {
            get { return mSize; }
            set { mSize = value; }
        }

        private string mPath = string.Empty;

        public string Path
        {
            get { return mPath; }
        }
        private string mDescription = string.Empty;

        public string Description
        {
            get { return mDescription; }
        }
        private DateTime mWrite = DateTime.MinValue;

        public DateTime Write
        {
            get { return mWrite; }
        }

    }
}
